#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
飞书多维表格API客户端启动脚本
"""

import sys
import os

# 添加src目录到Python路径
src_path = os.path.join(os.path.dirname(__file__), 'src')
sys.path.insert(0, src_path)

if __name__ == "__main__":
    try:
        # 导入并运行示例
        from example import main
        main()
    except ImportError as e:
        print(f"❌ 导入错误: {e}")
        print("请确保已安装所需依赖: pip install -r requirements.txt")
    except KeyboardInterrupt:
        print("\n\n👋 程序已退出")
    except Exception as e:
        print(f"❌ 运行错误: {e}")